from django.urls import path
from rest_framework.authtoken.views import obtain_auth_token
from . import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()  # 有根路由
router.register(r'goodscourse', views.GoodsCourseViewSet)

urlpatterns = [
    path('getpayurl/', views.PayUrlView.as_view()),
    path('peyment/', views.PayMentView.as_view())
]

urlpatterns += router.urls